/**
 * Created by wry on 2015/4/13.
 */
module.exports = function (app) {
    var activity = require('../../controllers/backoffice/backOffice-activity-controller');

    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/activity/getBackOfficeActivityList/:communityId/:page/:level', activity.getBackOfficeActivityList);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/activity/moveActivityToTop', activity.moveActivityToTop);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/activity/cancelTopActivity', activity.cancelTopActivity);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/activity/moveAllToTop', activity.moveAllToTop);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/activity/cancelTopAll', activity.cancelTopAll);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/activity/getAllUgc/:communityId/:page', activity.getAllUgc);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/activity/backOfficeUpdateActivity', activity.backOfficeUpdateActivity);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/activity/reports', activity.reports);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/activity/changeActivityLevel', activity.changeActivityLevel);
};